package com.androidx.p013lv.mine.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import androidx.recyclerview.widget.RecyclerView;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.bean.RechargeBean;
import com.androidx.p013lv.mine.fragment.TicketsFragment;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;

/* renamed from: com.androidx.lv.mine.databinding.FragmentTicketsBindingImpl */
public class FragmentTicketsBindingImpl extends FragmentTicketsBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback4;
    private long mDirtyFlags;
    private final LinearLayout mboundView2;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.recycler, 5);
        sViewsWithIds.put(C1207R.C1210id.ll_tickets_add, 6);
        sViewsWithIds.put(C1207R.C1210id.tv_one, 7);
        sViewsWithIds.put(C1207R.C1210id.tv_two, 8);
        sViewsWithIds.put(C1207R.C1210id.tv_prompt, 9);
    }

    public FragmentTicketsBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 10, sIncludes, sViewsWithIds));
    }

    private FragmentTicketsBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (ImageView) objArr[1], (LinearLayout) objArr[6], (RecyclerView) objArr[5], (LinearLayout) objArr[0], (TextView) objArr[4], (TextView) objArr[7], (TextView) objArr[3], (TextView) objArr[9], (TextView) objArr[8]);
        this.mDirtyFlags = -1;
        this.ivTicketStayTuned.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[2];
        this.mboundView2 = linearLayout;
        linearLayout.setTag(null);
        this.rootView.setTag(null);
        this.tvActionPay.setTag(null);
        this.tvPlayMoney.setTag(null);
        setRootTag(view);
        this.mCallback4 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 32;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.isEmpty == i) {
            setIsEmpty((Integer) obj);
        } else if (C1206BR.commitStatus == i) {
            setCommitStatus((Integer) obj);
        } else if (C1206BR.bean == i) {
            setBean((RechargeBean) obj);
        } else if (C1206BR.click != i) {
            return false;
        } else {
            setClick((TicketsFragment.OnClick) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentTicketsBinding
    public void setIsEmpty(Integer num) {
        this.mIsEmpty = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.isEmpty);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentTicketsBinding
    public void setCommitStatus(Integer num) {
        this.mCommitStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C1206BR.commitStatus);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentTicketsBinding
    public void setBean(RechargeBean rechargeBean) {
        updateRegistration(0, rechargeBean);
        this.mBean = rechargeBean;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.bean);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentTicketsBinding
    public void setClick(TicketsFragment.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeBean((RechargeBean) obj, i2);
    }

    private boolean onChangeBean(RechargeBean rechargeBean, int i) {
        if (i == C1206BR._all) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i != C1206BR.money) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 16;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Code restructure failed: missing block: B:31:0x0058, code lost:
        if (r14 != false) goto L_0x005a;
     */
    /* JADX WARNING: Removed duplicated region for block: B:22:0x0043  */
    /* JADX WARNING: Removed duplicated region for block: B:35:0x0063  */
    /* JADX WARNING: Removed duplicated region for block: B:40:0x0095  */
    /* JADX WARNING: Removed duplicated region for block: B:43:0x00a0  */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x00ac  */
    /* JADX WARNING: Removed duplicated region for block: B:49:0x00b7  */
    /* JADX WARNING: Removed duplicated region for block: B:54:? A[RETURN, SYNTHETIC] */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        long j2;
        long j3;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mIsEmpty;
        String str = null;
        Integer num2 = this.mCommitStatus;
        RechargeBean rechargeBean = this.mBean;
        TicketsFragment.OnClick onClick = this.mClick;
        long j4 = j & 34;
        int i2 = 8;
        boolean z = true;
        int i3 = 0;
        if (j4 != 0) {
            boolean z2 = ViewDataBinding.safeUnbox(num) == 1;
            if (j4 != 0) {
                j |= z2 ? 512 : 256;
            }
            if (!z2) {
                i = 8;
                j2 = j & 36;
                if (j2 != 0) {
                    if (ViewDataBinding.safeUnbox(num2) != 0) {
                        z = false;
                    }
                    if (j2 != 0) {
                        j |= z ? 128 : 64;
                    }
                }
                i2 = 0;
                j3 = j & 49;
                if (j3 != 0) {
                    if (rechargeBean != null) {
                        i3 = rechargeBean.getMoney();
                    }
                    str = String.valueOf(("¥" + i3) + "元");
                }
                if ((j & 34) != 0) {
                    this.ivTicketStayTuned.setVisibility(i);
                }
                if ((j & 36) != 0) {
                    this.mboundView2.setVisibility(i2);
                }
                if ((j & 32) != 0) {
                    this.tvActionPay.setOnClickListener(this.mCallback4);
                }
                if (j3 == 0) {
                    TextViewBindingAdapter.setText(this.tvPlayMoney, str);
                    return;
                }
                return;
            }
        }
        i = 0;
        j2 = j & 36;
        if (j2 != 0) {
        }
        i2 = 0;
        j3 = j & 49;
        if (j3 != 0) {
        }
        if ((j & 34) != 0) {
        }
        if ((j & 36) != 0) {
        }
        if ((j & 32) != 0) {
        }
        if (j3 == 0) {
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        TicketsFragment.OnClick onClick = this.mClick;
        if (onClick != null) {
            onClick.commitPay();
        }
    }
}
